package cn.itcast;

import cn.itcast.properties.SmsProperties;
import cn.itcast.template.SmsTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * Demo class
 *
 * @author gyc
 * @date 2021/10/17
 */
@EnableConfigurationProperties(
        SmsProperties.class
)
public class HealthAutoConfiguration {
    @Bean
    public SmsTemplate smsTemplate(SmsProperties smsProperties){
        return new SmsTemplate(smsProperties);
    }
}
